package cn.assumejson.springframework.beans.factory.annotation;

import java.lang.annotation.*;

/**
 * 依赖注入
 *
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/3 10:36
 */
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {
    /**
     * Declares whether the annotated dependency is required.
     * <p>Defaults to {@code true}.
     */
    boolean required() default true;
}
